README File for "Changing Attitudes and Provoking Action: Perspective-Taking Mobilizes White Americans for Prisoner Release"
by Mackenzie Israel-Trummel
September 10, 2024
Perspectives on Politics

#############
#
# Overview
# 
#############

This README file provides an inventory of all code used in the analysis. It also contains information on the relevant data sets used.

#############

#############
#
# Software
#
#############
Analyses were conducted in the following computing environment.

OSX 14.6.1
R version 4.4.0


Add-on R Libraries for analyses: 
- multilevel 2.7
- texreg 1.39.3
- tidyverse 2.0.0
- reshape2 1.4.4
- effects 4.2-2
- stargazer 5.2.3
- irr 0.84.1


#############
#
# Notes on Code
#
#############
Files beginning with "1" denote scripts for reproducing the tables and other results reported in the main text. Files beginning with "2" produce the tables and other results reported for supplementary analyses in the appendix. The one exception is the statistics reported at the beginning of the section "What Do People Write?" These statistics come from the analyses in Appendix 3 and the relevant code can be found there. 

Run the main manuscript code file prior to running the appendix code files. 

Within scripts, code is organized sequentially based on reporting of the relevant analyses in the paper, with descriptive headings calling out each analysis and specific steps.

Figures are saved into the active working directory.

Specific files are as follows:

Analysis file (Main Text)
- 1_Manuscript Code.R


Analysis files (Supplemental/Appendix)
- 2_Appendix Code_Appendix 2.R
- 2_Appendix Code_Appendix 3.R


#############
#
# Notes on Data
#
#############
The analyses use the following data sets:
1. "covid.RData" The survey data. Used in all three code files.
2. "emotion.RData" A data frame with the codings for whether respondents' open-ended responses to the "How does that make you feel" question expressed concern, worry, or sympathy for incarcerated people. Used in "2_Appendix Code_Appendix 3.R"
3. "blm events" A data set with labels and information on BLM relevant events used in GoogleTrends figure. Used in "10_googleTrends.R".





